package com.zhiyizhen.callnumber.component.api;

import com.zhiyizhen.callnumber.component.bean.BoardListItem;
import com.zhiyizhen.callnumber.component.bean.CaptchaImageBean;
import com.zhiyizhen.callnumber.component.bean.LoginBean;
import com.zhiyizhen.callnumber.component.bean.LoginReq;
import com.zhiyizhen.callnumber.net.response.ResponseData;

import java.util.List;

import io.reactivex.Observable;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.Header;
import retrofit2.http.POST;

public interface IApiService {

    @POST("/web/clinic/info/getBoardClinicInfo")
    Observable<ResponseData<LoginBean>> login(@Body LoginReq req);

    @GET("/web/clinic/queue/getBoardList")
    Observable<ResponseData<List<BoardListItem>>> getBoardList(
            @Header("clinicId") Integer clinicId);

    // 生成图形验证码
    @POST("/web/login/captchaImage")
    Observable<ResponseData<CaptchaImageBean>> requestCaptchaImage();
}
